# 存放元素
import allure
from selenium.webdriver.common.by import By
from base.base_page import Basspage


# 查看首页SKU、SKU列表
# yesmro商城前端
class Login_MALL_HOME(Basspage):
    """首页顶部"""
    # 左上角logo，点击会刷新
    home_logo = (By.XPATH, '//*[@id="header"]/div[3]/div[1]/div[1]/div/div/div/div[1]/a/img')
    # 点击自有品牌
    home_brand = (By.XPATH, '//*[@id="header"]/div[4]/div[2]/div/div[2]/a/img')
    # 爆款直隆
    home_hot_cake = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[1]')
    # 品牌选型
    home_model_selection = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[2]')
    # 黑卡专区
    home_Black_Card = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[3]')
    # 领卷中心
    home_discounts = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[4]')
    # 供应商合作
    home_cooperation = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[5]')
    # 下载样册
    home_specimen_book = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[2]/div/a[6]')

    """商品分类"""
    # 鼠标移入商品分类
    home_classification = (By.XPATH, '//*[@id="header"]/div[3]/div[2]/div/div[1]/a')
    # 点击触摸屏
    home_touch_screen = (By.XPATH, '//*[@id="categoryInfo_3036"]/ul/li[1]/a')
    # 点击接近
    home_approach = (By.XPATH, '//*[@id="categoryInfo_3642"]/ul/li[1]/a')
    # 点击断路器
    home_breaker = (By.XPATH, '//*[@id="categoryInfo_3360"]/ul/li[1]/a')
    # 点击分类-微型断路器
    home_miniature_miniature = (By.XPATH, '//*[@id="__layout"]/div/div[2]/div/div/div/div[3]/div[1]/div/div[1]/div[2]/div/span[1]/span/i/a')
    # 点击品牌施耐德
    home_Schneider = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div/div/div/div[3]/div[1]/div/div[1]/div[2]/div/span[1]/span/i')
    # 鼠标定位到第一行SKU列表数量上
    home_amount = (By.XPATH,
                   '//*[@id="__layout"]/div/div[2]/div/div[3]/div[4]/div/div[2]/div[2]/div[1]/div[7]/div[1]/div[1]/div/input')
    # SKU列表，第一行SKU，点击加入购物车
    home_shopping_trolley = (
    By.XPATH, '//*[@id="__layout"]/div/div[2]/div/div[3]/div[4]/div/div[2]/div[2]/div[1]/div[7]/div[1]/div[2]/span')
    # 提示添加购物车成功
    home_shopping_trolley_succeed = (By.XPATH, '/html/body/div[9]/div/div/div[1]/div/span')
